<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>꽁알 Administrator : 파일 업로드</title>

<script type="text/javascript">
function checkInput() {
	if ( $("input[name=file]").val() == "" ) {
		alert("파일을 선택하세요.");
		return false;
	}
	
	return true;
}
</script>


</head>
<body>

<form action="fileUploader.ga" method="post" enctype="multipart/form-data" onsubmit="return checkInput()">
<table align="center" style="text-align:center;">
	<tr>
		<td>
			<input type="file" name="file"/>
			<input type="hidden" name="index" value="${index }"/>
		</td>
	</tr>
	<tr>
		<td><input type="submit" value="등록"/></td>
	</tr>
</table>
</form>

</body>
</html>